import service from './service.js';

//用户登录接口
export function UserLogin(url, phone, password) {
    return service({
        url,
        params: {
            phone,
            password
        }
    });
}

//获取歌手详情
export function GetArtistDesc(url, artistId) {
    return service({
        url,
        params: {
            id: artistId,
        }
    });
}

//获取歌手列表
export function getSongerList(url) {
    return service({
        url,
    });
}

//获取歌手热门50首歌
export function getTopSongs(url, artistId) {
    return service({
        url,
        params: {
            id: artistId,
        }
    });
}

//获取歌曲资源
export function GetMusic(url, MusicId) {
    return service({
        url,
        params: {
            id: MusicId
        }
    });
}

//获取歌词
export function GetLyric(url, MusicId) {
    return service({
        url,
        params: {
            id: MusicId
        }
    });
}
//获取歌曲信息
export function GetMusicInfo(url, MusicId) {
    return service({
        url,
        params: {
            id: MusicId
        }
    });
}